#ifndef _AUDIO_RES_H_
#define _AUDIO_RES_H_

typedef enum {
    LOCAL_AUDIO_NET_CFG_CONFIG,
    LOCAL_AUDIO_NET_CFG_CONN,
    LOCAL_AUDIO_NET_CFG_FAIL,
    LOCAL_AUDIO_NET_CFG_START,
    LOCAL_AUDIO_NET_CFG_SWITCH,
    LOCAL_AUDIO_NET_CFG_TIMEOUT,
    LOCAL_AUDIO_NET_FAIL,
    LOCAL_AUDIO_NET_SUCC,
    LOCAL_AUDIO_OK,
    LOCAL_AUDIO_PLAY_ERR,
    LOCAL_AUDIO_SORRY,
    LOCAL_AUDIO_SORRY2,
    LOCAL_AUDIO_STARTING,
    LOCAL_AUDIO_END
} local_audio_name_t;

typedef enum {
    LOCAL_AUDIO_WAKEUP_COMING,
    LOCAL_AUDIO_WAKEUP_GO_AHEAD,
    LOCAL_AUDIO_WAKEUP_HELLO,
    LOCAL_AUDIO_WAKEUP_HI,
    LOCAL_AUDIO_WAKEUP_IM_HERE,
    LOCAL_AUDIO_WAKEUP_END
} local_wakeup_audio_name_t;

#define LOCAL_AUDIO_NET_CFG_CONFIG_PATH "/lfs/net_cfg_config.mp3"
#define LOCAL_AUDIO_NET_CFG_CONN_PATH "/lfs/net_cfg_conn.mp3"
#define LOCAL_AUDIO_NET_CFG_FAIL_PATH "/lfs/net_cfg_fail.mp3"
#define LOCAL_AUDIO_NET_CFG_START_PATH "/lfs/net_cfg_start.mp3"
#define LOCAL_AUDIO_NET_CFG_SWITCH_PATH "/lfs/net_cfg_switch.mp3"
#define LOCAL_AUDIO_NET_CFG_TIMEOUT_PATH "/lfs/net_cfg_timeout.mp3"
#define LOCAL_AUDIO_NET_FAIL_PATH "/lfs/net_fail.mp3"
#define LOCAL_AUDIO_NET_SUCC_PATH "/lfs/net_succ.mp3"
#define LOCAL_AUDIO_OK_PATH "/lfs/ok.mp3"
#define LOCAL_AUDIO_PLAY_ERR_PATH "/lfs/play_err.mp3"
#define LOCAL_AUDIO_SORRY_PATH "/lfs/sorry.mp3"
#define LOCAL_AUDIO_SORRY2_PATH "/lfs/sorry2.mp3"
#define LOCAL_AUDIO_STARTING_PATH "/lfs/starting.mp3"

#define LOCAL_AUDIO_WAKEUP_COMING_PATH "/lfs/wakeup_coming.mp3"
#define LOCAL_AUDIO_WAKEUP_GO_AHEAD_PATH "/lfs/wakeup_go_ahead.mp3"
#define LOCAL_AUDIO_WAKEUP_HELLO_PATH "/lfs/wakeup_hello.wav"
#define LOCAL_AUDIO_WAKEUP_HI_PATH "/lfs/wakeup_hi.mp3"
#define LOCAL_AUDIO_WAKEUP_IM_HERE_PATH "/lfs/wakeup_im_here.mp3"

#define AUDIO_RES_ARRAY \
{LOCAL_AUDIO_NET_CFG_CONFIG_PATH}, \
{LOCAL_AUDIO_NET_CFG_CONN_PATH},  \
{LOCAL_AUDIO_NET_CFG_FAIL_PATH}, \
{LOCAL_AUDIO_NET_CFG_START_PATH}, \
{LOCAL_AUDIO_NET_CFG_SWITCH_PATH}, \
{LOCAL_AUDIO_NET_CFG_TIMEOUT_PATH}, \
{LOCAL_AUDIO_NET_FAIL_PATH}, \
{LOCAL_AUDIO_NET_SUCC_PATH}, \
{LOCAL_AUDIO_OK_PATH}, \
{LOCAL_AUDIO_PLAY_ERR_PATH}, \
{LOCAL_AUDIO_SORRY_PATH}, \
{LOCAL_AUDIO_SORRY2_PATH}, \
{LOCAL_AUDIO_STARTING_PATH}, \
{NULL}

#define AUDIO_WAKEUP_RES_ARRAY  \
{LOCAL_AUDIO_WAKEUP_COMING_PATH}, \
{LOCAL_AUDIO_WAKEUP_GO_AHEAD_PATH}, \
{LOCAL_AUDIO_WAKEUP_HELLO_PATH}, \
{LOCAL_AUDIO_WAKEUP_HI_PATH},  \
{LOCAL_AUDIO_WAKEUP_IM_HERE_PATH}, \
{NULL}

int  local_audio_play(local_audio_name_t name);
int  local_wakeup_audio_play(local_wakeup_audio_name_t name);
void local_audio_finish_check();
#endif
